package a

import (
	"server/a0"
)

func A计数(model any, 时间筛选req *A时间筛选req) (total int64, err error) {
	db := a0.A_DB.Model(model)

	db = A时间筛选(db, 时间筛选req)
	db = db.Debug()
	err = db.Count(&total).Error

	return
}
